package com.han.bloghan.controller.api.administrator;

import com.han.bloghan.common.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/ad/user")
@Api(tags = "管理员用户相关api")
public class AdminController {

    @PostMapping(value = "/login")
    @ApiOperation(value = "登录")
    public CommonResult login(){
        return CommonResult.success("ok");
    }

    @GetMapping(value = "/user_list")
    @ApiOperation(value = "获取用户列表")
    public CommonResult userList(){
        return CommonResult.success("ok");
    }

}
